import request from '@/utils/request'
// 获取商品评价
export const getComments = (goodsId, limit) => {
  return request.get('/comment/listRows', {
    params: {
      limit,
      goodsId
    }
  })
}

// 获取商品评价总条数
export const getCommentsCount = (goodsId) => {
  return request.get('/comment/total', {
    params: {
      goodsId
    }
  })
}
